/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package businessData;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.ejb.Stateless;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author cam
 */

public class ProductionPlan implements Serializable{
    
     Date dateEnd;//trash
    private List<Order> productionPlanList ;

    public ProductionPlan() {
    dateEnd= null;
    productionPlanList = new ArrayList<Order>();
    }

    
    
    
    public ProductionPlan(Date dateEnd, List<Order> productionPlanList) {
        this.dateEnd = dateEnd;
        this.productionPlanList = productionPlanList;
    }

    
    public Date getDateEnd() {
        return dateEnd;
    }

    public void setDateEnd(Date dateEnd) {
        this.dateEnd = dateEnd;
    }

    public List<Order> getProductionPlanList() {
        return productionPlanList;
    }

    public void setProductionPlanList(List<Order> productionPlanList) {
        this.productionPlanList = productionPlanList;
    }
    public void addChild(Order order) { 
        
        productionPlanList.add(order);
    }    
    
}
